/*
 * @Author: 清羽
 * @Date: 2022-09-29 19:31:05
 * @LastEditTime: 2022-10-01 16:20:11
 * @LastEditors: you name
 * @Description: 
 */
import request from '@/utils/request'
import { admin } from '@/utils/base'

const business = {
	// 获取店铺列表
	getBusinessList () {
		return request({
			url: `${admin}/business/list`,
			method: 'get'
		})
	},
	// 获取店铺详情
	getBusinessInfo (businessId) {
		console.log("getBusinessInfo => businessId", businessId)
		return request({
			url: `${admin}/business/info`,
			method: 'post',
			data: businessId
		})
	},
	// 审核不通过通过
	businessCheckNo (data, businessId) {
		return request({
			url: `${admin}/business/check/no/${businessId}`,
			method: 'post',
			data
		})
	},
	// 审核通过
	businessCheckOk (businessId) {
		return request({
			url: `${admin}/business/check/ok/${businessId}`,
			method: 'post'
		})
	},
	// 商品下架
	businessDownShelf (data, businessId) {
		return request({
			url: `${admin}/business/downShelf/${businessId}`,
			method: 'post',
			data
		})
	}
}

export default business